package com.saasitems.admin.web.restcontroller;

import com.saasitems.admin.service.OrderInfoService;
import com.saasitems.admin.web.vo.orderinfo.AddOrderInfoVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Administrator on 2017/1/4.
 */
@RestController
public class RestOrderInfoController {

    @Autowired
    private OrderInfoService orderInfoService;

    @RequestMapping(value = "rest/orderinfo/add", method = RequestMethod.POST)
    @ResponseBody
    public Object add(@RequestBody AddOrderInfoVO vo) {
        Map<String, Object> ret = new HashMap<String, Object>();
        ret.put("status", "OK");
        orderInfoService.insert(vo);
        return ret;
    }

}
